This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: Frameset woes in R6 (Really need some help here) ~Lex Prelutexflar 18.Dec.03 09:47 AM a Web browser Applications Development All ReleasesWindows 2000
Hi K (?),
To auto-load a document in the details frame when a view or folder in the main frame is first opened you need some code in the postopen event (for the view/folder in main) like this:
Sub PostOpen (source As NotesUIView)
Dim ws As New NotesUIWorkspace
Dim uidb As NotesUIDatabase
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim nid As String
Set uidb = ws.CurrentDatabase
Set db = uidb.Database
nid = source.CaretNoteID
Call ws.SetTargetFrame("detailsFrame")
If nid = "0" Then
Call ws.OpenPage("NoSelect")
Else
Set doc = db.GetDocumentByID(nid)
Call ws.EditDocument(False, doc)
End If
End Sub
As this code tracks the CaretNoteID rather than the first or selected document in the view, it should also ensure the details frame shows the correct document when the user switches to a different name. The code assumes you have a page called "NoSelect" that displays when the view has no documents at all.